<table class="datatable table table-striped table-hover" id="preview">
  <thead>
    <tr>
      <th class="hidden-xs">版本号</th>
      <th class="hidden-xs">应用名</th>
      <th class="hidden-xs">崩溃率</th>
      <th class="hidden-xs">发布日期</th>
      <th class="hidden-xs">操作</th>
    </tr>
  </thead>
  <tbody>
    <% @previews_versions.each do |app_version| %>
    <tr>
      <td class="hidden-xs"><%= app_version.version %></td>
      <td class="hidden-xs"><%= app_version.app.name %></td>
      <td class="hidden-xs"><%= app_version.crash_rate %></td>
      <td class="hidden-xs"><%= app_version.released_date.strftime('%y-%m-%d') rescue '-' %></td>
      <td class="hidden-xs"></td>
    </tr>
    <% end %>
  </tbody>
</table>
<script>
  $('#preview').DataTable();
</script>
